#include <stdio.h>

int main(int argc, char const *argv[])
{
    FILE *file = fopen("test.txt","w");
    if (file == NULL)
    {
        printf("打开错误\n");
        return -1;
    }else{
        printf("打开成功\n");
    }

    int result = fclose(file);
    if (result == 0)
    {
        printf("文件关闭成功\n");
    }else{
        printf("文件关闭失败\n");
    }
    
    
    return 0;
}
